#ifndef Q_DATA_H
#define Q_DATA_H

#include <QWidget>
#include <QSqlDatabase>

#include <QAction>

namespace Ui
{
class Q_data;
}

class Q_data : public QWidget
{
    Q_OBJECT

public:
    explicit Q_data(QWidget* parent = nullptr);
    ~Q_data();

private slots:
    void on_pushButton_clicked();
    void showStuInfo();

    void on_pushButtonSeek_clicked();

    void on_pushButtonDel_clicked();

    void on_tableWidget_customContextMenuRequested(const QPoint& pos);
    void slotActionModify();
    void slotActionRemove();

    void slotActionSeek();
private:
    Ui::Q_data* ui;
    QSqlDatabase m_db;

    QMenu* table_widget_menu;
};

#endif // Q_DATA_H
